# coding: utf-8

import ConfigParser
import sys
import os

pathname = os.path.dirname(sys.argv[0])
absname = os.path.abspath(pathname)

#print '1:'+sys.argv[0]
#print '2:'+pathname
#print '3:' + absname
#print '4:' + os.environ['HOME']

_config = ConfigParser.ConfigParser()
_config.read(os.environ['HOME']+'/sakya.cfg')
#_config.read(absname+'/sakya.cfg')
#_config.read('sakya.cfg')

def get(section, option):
    return _config.get(section, option)

def getint(section, option):
    return _config.getint(section, option)